<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<script language="javascript" src="jquery-1.5.2.js"></script>
<script src="jquery.maskedinput-1.2.2.js" type="text/javascript"></script>
<head>
<?php
include_once("../Classes/Pagina.php");
include_once("../Classes/TipoEntrega.php");
$entrega = new TipoEntrega();
$lista = $entrega->buscarTodas();
$data = date("m/d/Y");
$v = new DateTime($data);




?>
<script language="javascript">
$(document).ready(function(){
$("#txtDataEntrada").mask("99/99/9999");
$("#txtDataEntrega").mask("99/99/9999");
$("#txtNumero").mask("99999999");
$("#txtRamal").mask("9999");
$("#txtCcusto").mask("9999");
});
</script>
<style type="text/css">
img.tituloCadastro{
	margin-bottom: -80px;
	display: block;
}
	
#partePrincipal{
	width: 580px;
	height: 450px;
	margin-top: 0px;
	margin-left: 20px;
	
	
}
p.demandaParagrafo{
	margin-left: 10px;
	margin-bottom: 7px;
}
table#cadastro{
	width: 545px;
}
table#cadastro td.texto{
	margin-top: 2px;
}
p.tdTablela{
	margin-top: 10px;
	display: table-row-group;
}
p.tdTextArea{
	margin-left: 20px;
	display: table-row-group;
}
p.tituloCadastro{
	font-size: 24px;
	font-family: Verdana, Geneva, sans-serif;
}


</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8-bin" />
<title>Untitled Document</title>
</head>
<body> 
<div id="partePrincipal">
<table id="cadastro" cellpadding="2px">
	<tr>
    <td colspan="2"><p class="tituloCadastro">Cadastrar Nota</p></td>
    </tr>
  <tr>
  <td colspan="4">Area:
<select id="txtAreaResponsabilidade" name="txtAreaResponsabilidade">
<?php 
include_once("../Classes/Pagina.php");
Pagina::selectAreaRespID();

 ?>
</select> <input id="txtNumeroAno" value="<?php echo substr($data, 8); ?>" name="txtNumeroAno" maxlength="2" size="1" type="text" /> <input id="txtNumero" name="txtNumero" value="" type="text" /></td>
    <td></td>
    
  </tr>
  <tr>
    <td colspan="4"><p class="tdTablela">Descricao:</p>
    <p class="tdTextArea"> <textarea id="txtDescricao" name="txtDescricao" cols="50" rows="6"></textarea></p>
 </td>
<tr>
    <td colspan="4">Progamador: <input id="txtProgramador" size="50"  name="txtProgramador" type="text" /></td>
  </tr>
  </tr>
  <tr>
    <td>Item codificavel: </td>
    <td><input id="txtItemCodificavel" name="txtItemCodificavel" type="text" /></td>
    <td>Ramal:</td>
    <td> <input id="txtRamal" size="10" name="txtRamal" type="text" /></td>
  </tr>
  
  <tr>
    <td>Especificação:</td><td> <input id="txtDesenho" name="txtDesenho" type="text" /></td>
    <td>Centro de Custo:</td><td> <input id="txtCcusto" name="txtCcusto" size="14" type="text" /></td>
  </tr>
  
  <tr>
  	 <td>Tipo de Entrega:</td> 
 	 <td><select id="txtTipoEntrega" name="txtTipoNota"><?php Pagina::selectTipoEntrega(); ?> </select></td>
 	 <td>Tipo de Serviço:</td>
  	 <td> <select id="txtTipoNota" name="txtTipoNota"><?php Pagina::selectTipoNota(); ?> </select></td>
  </tr>

  <tr>
    <td>Data de Entrada: </td>
    <td>
    <input id="txtDataEntrada" size="11" name="txtDataEntrada" value='<?php echo $v->format("d/m/Y"); ?>' type="text"  />
    </td> 
    <td>Data de Entrega:</td>
    <td> 
    <input id="txtDataEntrega" name="txtDataEntrega" value="
	<?php $v->add(new DateInterval("P15D")); echo $v->format("d/m/Y"); ?>" type="text" size="11" />
    </td>
  </tr>
  <tr>
    <td colspan="4"><input type="button" id="btnEnviar" value="Enviar" /></td>
  </tr>
</table>
</div>

</body>
</html>


